<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
	MYTCONN();
	$MYT = $GLOBALS['MYT'];
	form_pr('apayform','','','post');
	mn_field('hidden','ED','SelectedPayments','','','','','');
	mn_field('hidden','ED','Observations','','','','','');
?>
<div class="title">Pagamentos em Conta</div>
<div class="Line">
	<label>De:</label>
	<?php mn_field('date','ED','apay_Start','','apayform','8','',''); ?>
	<label>a: </label>
	<?php mn_field('date','ED','apay_End','','apayform','8','',''); ?>
	<label>Pais:</label>
	<?php mn_field('select','ED','apay_Country',$__sys['Country'],"SELECT pai_CodElite AS ID, pai_NombreUSD AS NAME FROM hd_paises WHERE pai_ActivoGiros = 1 OR pai_CodElite = ".$__sys['Country'],' ','',''); ?>
	<label>Correspondente:</label>
	<?php mn_field('select','ED','apay_Correspondent','',"SELECT CorrNumero AS ID, CorrNombre AS NAME FROM corresponsales
                                INNER JOIN trn_corrmethods ON tcmtCorrespondent = CorrNumero
                                WHERE tcmtChannel = 2 AND tcmtPID = 161",' ','',''); ?>
	<label>Bancos:</label>
	<?php mn_field('select','ED','apay_Bank','',"SELECT bp_ID AS ID, bp_Name AS NAME FROM hd_bancos WHERE bp_Country = ".$__sys['Country'],' ','',''); ?>
	<p>
	<?php mn_field('button','ED','apaySubmit','Consultar','','','','" onClick="
                document.apayform.action=\'Modules/FTK9D4D0/Lib/a08_rsAcountPayments.php\';
                subform(\'apayform\',\'rsAccountPayments\');" style="margin:10px'); ?>
</div>
<div id="rsAccountPayments"><?php include($GLOBALS['PAD'].'Modules/FTK9D4D0/Lib/a08_rsAcountPayments.php'); ?></div>
</form>